﻿
@{
    Layout = null;
    var mod = ViewBag.mode as MVCT3.Models.models;

}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
   
    <form>
        <div>
            <p>名称：<input type="text" name="Name" /></p>
            <p>数量：<input  type="text" name="mun"/></p>
            <button type="submit">提交</button>
            @{ 

                if (ViewBag.mode!=null)
                {
                    <p>你添加了 @mod.Name 商品 @mod.mun 件</p>
                }
            }
        </div>
    </form>
</body>
</html>
